You are here:Templates Club arrow Help and Support arrow Support Forums
Youjoomla Support
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Can my frontpage slider mod be copied/duplicat (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Can my frontpage slider mod be copied/duplicat
#4034
neo
Admin
Posts: 2123
graph
User Offline Click here to see the profile of this user
Re:Can my frontpage slider mod be copied/duplicat 2 Months, 2 Weeks ago Karma: 60  
sorry headatg function name should also be changed , learn to read the errors , php is language that actualy tells you what is wrong

so here is a small php class for you

error says

Cannot redeclare newheadtag() (previously declared in

which means that class has being used already by different script

and this

mod_myfp_slider.php:113) in

tells you where the class or function is

all you need to do is go to line 113 and rename that function to something else
also rename all instances of that function

class dismissed

p.s:what is your native language
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
#4039
neo
Admin
Posts: 2123
graph
User Offline Click here to see the profile of this user
Re:Can my frontpage slider mod be copied/duplicat 2 Months, 2 Weeks ago Karma: 60  
you deleted something ";" or "{" rename only the word
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
#4041
lotvot
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Re:Can my frontpage slider mod be copied/duplicat 2 Months, 2 Weeks ago Karma: 0  
Hi Neo,

Thank you so much, you don't know how much I appreciate that class you just slowly show me how to fish...LOL... knowledge is power ...right?

I will go and try again and I am determine to get it right and learn from my mistake in the same time so any tips/class along the way is always welcome....LOL

I will report back and hopefully with SOLVED to add on to this thread. My native language is Tongan its a polynesian dialect like the Hawaiians...LOL BTW by looking at your photo you could be easily mistaken to be one of us..

Thanks again its homework time for me and I will report back.
 
Logged Logged  
  The administrator has disabled public write access.
#4156
lotvot
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Re:Can my frontpage slider mod be copied/duplicat 2 Months, 2 Weeks ago Karma: 0  
Hi I am back head down and about the idea of being a coder....LOL. This is what happen for the last 2 days regarding my attempt dupilication of the mod_myfp_slider.

I re-configure and re-name the file to mod_myfp_slider2. I zipped it up and uploaded the mod everything was working great up to this point. So published it and I end up with this error

Code:

Parse error: syntax error, unexpected '{' in /mnt/w0111/d01/s30/b01692dd/www/mysite.com/modules/ mod_myfp_slider2.php on line 506
So I delete the '{' on line 506 which is the following code;
Code:

echo "</a>\n"; echo"</div>"; echo"</div>"; } 506 yourfunction ( &$row, $width=-1, $height=-1 ) } global $mosConfig_absolute_path, $mosConfig_live_site; // split on \n the images fields into an array $row->images = explode("\n",$row->images); $total=count($row->images); for ($i = 0; $i < $total; $i++ ) {
So I deleted the '}' behind this code yourfunction ( &$row, $width=-1, $height=-1 ) } on line 506 but I end up with the following error;
Code:

Parse error: syntax error, unexpected T_GLOBAL in /mnt/w0111/d01/s30/b01692dd/www/mysite.com/modules/ mod_myfp_slider2.php on line 507
Then I google the error and end up with various post but none really make sense. So I play around with the }, ;," but of course end up nowhere. So here I am back again after trying unsuccessfully. Any idea will be great Thank you so much
 
Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop