|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
Ian: What would I have screwed up, if when using the thumb tag, when I goto edit my message, I see HTML code there instead of the original [THUMB] tag
B.T.W tgreene, you still need strikethrough?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
You're using 6.7 finally?
oh, and make sure you didn't change the size of the thumbnails
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
Originally posted by Ian Spence:
You're using 6.7 finally?
oh, and make sure you didn't change the size of the thumbnails
Not exactly man. I want to soon though. Guess whos still unemployed.  Just graduated college last week and needing a job here. Anyways, I don't remember changing the size, but maybe I did. I added a border="0" but that didnt matter cuz I checked it at default and it still showed HTML code. I dunno, guess its not a big deal
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
your step in ubb_lib_posting.cgi must be incorrect.
paste the html you get when you try to edit a thumbnail
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
<a href="http://" target="_fullview"><img src="http://" border="0" width="200" alt="Click for fullsize image" /></a>
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
does the image show before you try to edit?
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
ya dude, the image shows fine. Its just the edit thats the problem. Of course once you edit it, and keep the HTML it doesnt work, specially with HTML turned off, which is why you kinda need the THUMB tags there, unless of course u dont edit the thread. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
when you edited ubb_lib.cgi, you made sure to edit ubb_lib_posting.cgi identically, right?
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
ubb_lib.cgi if ($_[1] eq 'ON') { $match++ if $_[0] =~ s/([img])(S+?)([/img])/&imageize($2)/eisg; $match++ if $_[0] =~ s/([img])(S+?)([/img])/&imageize($2)/eisg; $match++ if $_[0] =~ s/([THUMB])(S+?)([/THUMB])/&thumbize($2)/eisg; } ubb_lib_posting.cgi if ($_[1] ne "OFF") { # New $match++ if $_[0] =~ s/(<img src=")(S+)(" alt="" />)/[img]$2[/img]/isg; # New + alt $match++ if $_[0] =~ s/(<img src=")(S+)(" alt=" - " />)/[img]$2[/img]/isg; # old $match++ if $_[0] =~ s/(<img src=")(S+)(">)/[img]$2[/img]/isg; [b]$match++ if $_[0] =~ s/(<a href=")(http|https|ftp)(://)(S+)(" target="_fullview"><img src=")(S+)(" width="200" /></a>)/[THUMB]$6[/THUMB]/isg;
}
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you did not edit ubb_lib_posting.cgi to notice the border="0"
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
What would that matter? I thought I did, but how would that make HTML code appear. Remember though, it never worked even before I put border="0"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
if you don't add the border="0" to ubb_lib_posting.cgi, it won't match the pattern and thus won't be converted back to ubbcode.
I can't help you if all I have to work with is "it doesn't work" First, you shouldn't install this version on 6.3, there's a 6.3 version for that. Secondly, if a hack doesn't work to begin with, don't edit it unless you know the fix for the problem. I don't support a modified version of my hack that was written when the person didn't know how it originally worked
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
Originally posted by Ian Spence:
I don't support a modified version of my hack that was written when the person didn't know how it originally worked
Um, the majority of people who install these hacks don't really know how they work. They're all newbs at this stuff. They just install these hacks because there are cool or whatever. So you really cant say that. Secondly, this hack can be adapted to 6.3 just because its pretty much the same anyway as the one for 6.3. The only part that really differs the most is Like I said, whatever. I'll figure it out, I usually do. I just wanted to know if you knew offhand. Thirdly, I was nice enough to donate to your site awhile ago, so don't be ah bashin...
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
Yet another cry for help... Inthe instructions, it does not list a "vars_styles_x.cgi" as modified. I completed the CP2 mods, and the next thing is to find and edit "vars_styles_x.cgi". Ok, so I find a file named Vars_styles_1.cgi but it doesn't look like the mod file instructions, and so I'm stuck. I can't find the text to modifiy. What do I do?
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
Well, I did it, without the vars_styles_x.cgi modifications and it works.
Do you predict any adverse effects?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
yes, the images shouldn't work in the posting pages
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
They do. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|