Author |
Topic  |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 08:51:54
|
hello.... good day to all.... :)
i have a situation... site integration is activated....
top and right banner is activated....
the banners are working well... but what if i dont want the right banner to appear in a particular page, example, in home link, top and right banners should appear, and if i click the edit profile link, only the top banner should appear....
is it possible to do that?.... if yes, how?....
thanks in advance.... :)
< |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 26 February 2009 : 09:06:03
|
Add a conditional statement to the file that contains your right banner that checks the file name against the strScriptName variable.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 10:01:04
|
huh?...
can u show me an example pls... do u want me to post my files?....
many, many thanks.... :) < |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 26 February 2009 : 11:07:44
|
dim:strScript:strScript=lcase(mid(strScriptName,instrrev(strScriptName,"/")+1))
if instr("pop_profile.asp",strScript)=0 then
'your code here
end if < |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 11:16:25
|
quote: Originally posted by Shaggy
dim:strScript:strScript=lcase(mid(strScriptName,instrrev(strScriptName,"/")+1))
if instr("pop_profile.asp",strScript)=0 then
'your code here
end if
thanks shaggy...
the conditional statement u gave above, should be place in the inc_site_right.asp, right?...
quote: <% dim:strScript:strScript=lcase(mid(strScriptName,instrrev(strScriptName,"/")+1)) if instr("pop_profile.asp",strScript)=0 then %>
<table border="0" cellspacing="0" cellpadding="0"> <tr> <br /> <td><img src="/forum/images/rightad1.gif"/></td> </tr> </table> <% end if %>
thank you for ur time.... :) < |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 11:27:27
|
hi shaggy, im getting this error... :(
error message: Microsoft VBScript compilation (0x800A03F2) Expected identifier /forum/inc_site_right.asp, line 5, column 3
file inc_site_right.asp, LINE 5 in red dim:strScript:strScript=lcase(mid(strScriptName,instrrev(strScriptName,"/")+1)) if instr("pop_profile.asp",strScript)=0 then
how do i also include members.asp and active.asp?....
thanks again for ur time.... :) < |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 26 February 2009 : 11:31:27
|
Sorry, typo; replace the colon after "dim" with a space.
You can add more files to the first argument in that function, seperated by commas. For example:if instr("pop_profile.asp,members.asp",strScript)=0 then < |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 11:40:50
|
wow!... its working now!.... :)
yeppee!... thank u, thank u very much.... :)
< |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 26 February 2009 : 11:50:08
|
You're welcome.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 19:46:59
|
hello shaggy.... :)
i'm experiencing this error.... :(
Microsoft VBScript compilation (0x800A0411) Name redefined /forum/inc_footer.asp, line 76, column 4
inc_footer.asp file, LINE 76 in red: dim strScript:strScript=lcase(mid(strScriptName,instrrev(strScriptName,"/")+1)) if instr("pop_profile.asp",strScript)=0 then
i placed the code in inc_footer.asp, coz i realize, the right banner is not displaying, but theres a gap or a blank space.
how can i fix this problem?.... < |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 26 February 2009 : 22:00:35
|
with my error above, i just remove the dim in the inc_footer.asp, i think its because i have the dim in inc_header.asp... anyways, i'm not getting anymore errors... :)
heres another prob the i encountered, i inserted some codes in the inc_site_left.asp, the purpose of it is to get the latest post in some forum i selected, its displaying all the latest post, but when i click the topic, it only redirects me to 1 topic, i cant figure out why the links is not working properly.... :(
heres my code in inc_site_left.asp: <edit by="Shaggy">Code removed</edit>
how do i fix this?....< |
Edited by - Shaggy on 27 February 2009 04:22:37 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 27 February 2009 : 04:28:06
|
If you already have a variable called strScript that you're using for something else then I'd recommend you change the name of the variable I used. Unless, of course, your strScript variable, as I suspect it might, has the same value as mine in which case you can just delete mine.
As for your new issue, please do not post the entire contents of a file here as it is completely unreadable. Either post an extract from the code that is relevant to your query or, if you must post the entire file, post a link to a *.txt copy of the file.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
phoenixtaz13
Junior Member
 
129 Posts |
Posted - 27 February 2009 : 05:45:46
|
yup, solve the prob with the variable... thanks... :)
for my new issue, im sorry about it, i'll remove the codes i posted...
thanks for ur time.... :) < |
Edited by - phoenixtaz13 on 27 February 2009 05:46:43 |
 |
|
|
Topic  |
|