 |
Your forum announcement here! |
|
 |

23-05-2007, 20:03
|
|
new member
|
|
Join Date: May 2007
Posts: 6
|
|
Viper Guest Book: how to edit link
I'm PHP challenged and am trying to change the wording of "Back to main index" at the top of the Viper Guestbook page to read "Read more guest notes", which I will then point to a page of old guest notes that we have gathered over the years.
You can get to the guestbook here: horsekeeping.com/guestbook-enter.html
When I "View Source" on my browser I can clearly see where the change is to be made in the text of the page html, but in my directory I cannot find an "index.html" or other file tht contains the words "Back to the main index". Can someone please advise me on where to make this change? Thanks.
|

25-05-2007, 20:59
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
|
|
Isn't it index.php you are looking for?
Hope that helps  .
|

25-05-2007, 21:57
|
|
new member
|
|
Join Date: May 2007
Posts: 6
|
|
Quote:
Originally Posted by DPS Computing
Isn't it index.php you are looking for?
Hope that helps  .
|
Thanks for your reply. That's where I expected to find it, but there is no html markup there and especially no reference to the "Back to main index" that I am looking for.
|

25-05-2007, 22:15
|
 |
Premium Member
|
|
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,438
|
|
Quote:
Originally Posted by klimshelf
Thanks for your reply. That's where I expected to find it, but there is no html markup there and especially no reference to the "Back to main index" that I am looking for.
|
I've never used Viper Guestbook myself, but I suggest you try looking for file with the name 'header' and similar. That should help you...
__________________
Regards,
Josh Hold
eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!
LDN GIGS - Gig Listings for London
Super Moderator
I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.
I don't bite, honest.
|

25-05-2007, 22:16
|
 |
Premium Member
|
|
Join Date: Nov 2005
Location: New Mexico
Posts: 761
|
|
Deleted for mistake
Last edited by Brian; 25-05-2007 at 22:17.
Reason: :S
|

25-05-2007, 22:27
|
|
new member
|
|
Join Date: May 2007
Posts: 6
|
|
Quote:
Originally Posted by flesso
I've never used Viper Guestbook myself, but I suggest you try looking for file with the name 'header' and similar. That should help you...
|
I found "header" in 12 of the 85 Viper Guestbook files, all in php code. The only one that looked promising was in the index.php file:
"header("Content-Type: text/html; charset=".$settings['ENCODING']);"
I have no idea what that code means. I found no standard HTML <HEADER anywhere.
Thanks for you help.
|

25-05-2007, 22:33
|
 |
Premium Member
|
|
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,438
|
|
Quote:
Originally Posted by klimshelf
I found "header" in 12 of the 85 Viper Guestbook files, all in php code. The only one that looked promising was in the index.php file:
"header("Content-Type: text/html; charset=".$settings['ENCODING']);"
I have no idea what that code means. I found no standard HTML <HEADER anywhere.
Thanks for you help.
|
That code you pasted is only outputting meta info...
__________________
Regards,
Josh Hold
eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!
LDN GIGS - Gig Listings for London
Super Moderator
I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.
I don't bite, honest.
|

25-05-2007, 22:45
|
|
new member
|
|
Join Date: May 2007
Posts: 6
|
|
Quote:
Originally Posted by flesso
That code you pasted is only outputting meta info...
|
Yes, I had a hunch that was not the answer. I am baffled as to where the html code for the main page is located.
|

25-05-2007, 22:50
|
 |
Premium Member
|
|
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
|
|
Quote:
Originally Posted by klimshelf
...I cannot find an "index.html" or other file tht contains the words "Back to the main index". Can someone please advise me on where to make this change?
|
You'll find that in: /public_html/viper/skins/Standard_Skin/lang.inc
line 161: define ( "LANG52" , "Back to main index" );
It's strange you didn't find it in a search ...
Late edit: I see it now! You searched for "Back to THE main index" (even though in your first paragraph you wrote it correctly)!!
__________________
Gadge
Too many nice toys — too little time to play with 'em!
Last edited by 247h; 25-05-2007 at 22:53.
|

25-05-2007, 23:18
|
|
new member
|
|
Join Date: May 2007
Posts: 6
|
|
Quote:
Originally Posted by 247h
You'll find that in: /public_html/viper/skins/Standard_Skin/lang.inc
line 161: define ( "LANG52" , "Back to main index" );
It's strange you didn't find it in a search ...
Late edit: I see it now! You searched for "Back to THE main index" (even though in your first paragraph you wrote it correctly)!!
|
247h you are a wizard. Thanks much. Actually, I searched "Back to", "Back", "main", "main index" and none of them showed up, even when I specificall searched the lang.inc file. I guess the Advanced Find and Replace program I was using to search was not going into the .inc files and the Dreamweaver program doesn't recognize .inc extensions.
BTW, how did you find it?
Thanks again.
|

25-05-2007, 23:41
|
 |
Premium Member
|
|
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
|
|
Quote:
Originally Posted by klimshelf
...BTW, how did you find it?
|
I had made a similar change myself (some time ago) when, having put Viper in a Joomla Wrapper, returning to the Main Index was not a hyperlink that was wanted, whereas "Back a page" in Joomla was of far more interest.
How I found it was just a logical process I suppose — if you look at the source of the page you'll see that string is associated with class 'vgblink' and like many other apps that use skins + language files, it seemed fairly sensible to start looking in the skins folders (well, there's only the default one). Spotting the file 'skinMenu.php', I checked the contents and found the following:
PHP Code:
<?php LinkIfBack("<span class='vgbselect' > | </span>{<?php Out(LANG52)?>}","","class='vgblink'")?>
Note: I'll be bl**dy glad when eUKhost fix this vBulletin to allow codes to be displayed correctly! I've added spaces where necessary to 'greater-than' and 'less-than' brackets ...
It then didn't take long to realise that I should look for LANG52 in lang.inc — sometimes you get lucky; sometimes it takes much longer ...
__________________
Gadge
Too many nice toys — too little time to play with 'em!
|

25-05-2007, 23:48
|
 |
Chief Marketing Officer
|
|
Join Date: Sep 2005
Posts: 4,771
|
|
This has been sorted.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
|

25-05-2007, 23:50
|
 |
Premium Member
|
|
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
|
|
Quote:
Originally Posted by eukhost.com
This has been sorted.
|
No it hasn't!
Late edit: I apologise — I could have sworn it screwed up my entered php code after I previewed it, but having treble-checked it again (including standard code) it seems OK. Thanks for that Mark — you could have left a note of completion in the other thread! 
__________________
Gadge
Too many nice toys — too little time to play with 'em!
Last edited by 247h; 21-10-2007 at 15:21.
Reason: repair emdashes changed by database update to utf-8
|

28-05-2007, 12:17
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
|
|
Also as note to the earlier "looking for standard HTML code" - I thought everything was PHP in Viper and nothing was done in "standard HTML"?
|

28-05-2007, 12:32
|
 |
Premium Member
|
|
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
|
|
Quote:
Originally Posted by DPS Computing
Also as note to the earlier "looking for standard HTML code" - I thought everything was PHP in Viper and nothing was done in "standard HTML"?
|
I'm wondering what your point is and to which quote of "looking for standard HTML code" you're referring?
__________________
Gadge
Too many nice toys — too little time to play with 'em!
|

28-05-2007, 12:43
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
|
|
Quote:
Originally Posted by klimshelf
I found "header" in 12 of the 85 Viper Guestbook files, all in php code. The only one that looked promising was in the index.php file:
"header("Content-Type: text/html; charset=".$settings['ENCODING']);"
I have no idea what that code means. I found no standard HTML <HEADER anywhere.
Thanks for you help.
|
That is the quote above.
Quote:
Originally Posted by 247h
I'm wondering what your point is and to which quote of "looking for standard HTML code" you're referring?
|
And I was just making the point that I wasn't aware of any standard html code in Viper so therefore, for future reference, there would be no point in looking for something which I don't think exists!!!
So the point is to help and save time in the future! 
|

28-05-2007, 12:59
|
 |
Premium Member
|
|
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
|
|
With respect David, in this case you're just adding to the confusion, not easing it.
Neither Flesso nor you had any experience of Viper yet you both gave opinions of where klimshelf should be looking and between you, sent him off at a tangent — it's not his fault that he couldn't explain his needs any better.
He was looking for a text string that is plainly evident in the source code of Viper's front page — did either of you check it?
Anyway, he's made the changes now so all's well ...
__________________
Gadge
Too many nice toys — too little time to play with 'em!
Last edited by 247h; 21-10-2007 at 15:22.
Reason: repair emdashes changed by database update to utf-8
| |