site integration mod - Posted (1426 Views)
Junior Member
phoenixtaz13
Posts: 129
129
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.... :)

<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Support Moderator
Shaggy
Posts: 6780
6780
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.”
Posted
Junior Member
phoenixtaz13
Posts: 129
129
huh?...
can u show me an example pls... do u want me to post my files?....
many, many thanks.... :)
<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Code:
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.”
Posted
Junior Member
phoenixtaz13
Posts: 129
129
<%
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.... :)
<
Posted
Junior Member
phoenixtaz13
Posts: 129
129
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.... :)
<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
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:
Code:
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.”
Posted
Junior Member
phoenixtaz13
Posts: 129
129
wow!... its working now!.... :)

yeppee!... thank u, thank u very much.... :)

<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
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.”
Posted
Junior Member
phoenixtaz13
Posts: 129
129
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?....
<
Posted
Junior Member
phoenixtaz13
Posts: 129
129
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?....<
You Must enter a message