Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Joined: Sep 2001
Posts: 672
Member
Member
Offline
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?

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: Sep 2001
Posts: 672
Quote
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. shocked 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
Offline
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
Offline
Joined: Sep 2001
Posts: 672
Code
<a href="http://" target="_fullview"><img src="http://" border="0" width="200" alt="Click for fullsize image" /></a>

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
does the image show before you try to edit?

Joined: Sep 2001
Posts: 672
Member
Member
Offline
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. tipsy

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: Sep 2001
Posts: 672
ubb_lib.cgi
Code
		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

Code
		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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
you did not edit ubb_lib_posting.cgi to notice the border="0"

Sponsored Links
Joined: Sep 2001
Posts: 672
Member
Member
Offline
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
Offline
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
Offline
Joined: Sep 2001
Posts: 672
Quote
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
Code
$match++ if $_[0]
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
Offline
Joined: Nov 2003
Posts: 156
Yet another cry for help... frown

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
Offline
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
Offline
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
Offline
Joined: Nov 2003
Posts: 156
They do.

confused

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
oh well then

Page 2 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)