Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #46  
Old 29 Sep 2014, 22:08
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Ok give me a bit to work it out.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #47  
Old 30 Sep 2014, 01:26
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
I am getting close on this. Had to completely re write the regex for the replacement.

Now I just have to get the css to get in place.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #48  
Old 30 Sep 2014, 07:59
Black Snow Black Snow is offline
 
Join Date: Jul 2012
I didn't think it would be that hard to use the str_replace function. It looks easy enough when looking at other mods/articles.
Reply With Quote
  #49  
Old 30 Sep 2014, 11:01
Black Snow Black Snow is offline
 
Join Date: Jul 2012
OK cool. Thanks very much ozzy.

Why is it so hard to do a str_replace on that div?
Reply With Quote
  #50  
Old 30 Sep 2014, 11:02
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Not sure how my post just inserted itself before yours although I was replying to you lol. And how did you post at 12:07 when vB states its 12:02 at the bottom of the page?
Reply With Quote
  #51  
Old 30 Sep 2014, 11:07
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
The issue is what we are trying to replace with. I had looked into this just about a year ago and failed. I have just about got it right as of now, but I neet to test it against other mods to make sure it won't break them.

So hopefully later today I will have this ready.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #52  
Old 30 Sep 2014, 11:40
Black Snow Black Snow is offline
 
Join Date: Jul 2012
I did reply to you ozzy but the posts went above your last post for some reason.
Reply With Quote
  #53  
Old 30 Sep 2014, 12:33
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Haha! Something wrong with vB then.

Well at least your getting something out of helping me. Be nice to have all your temp mods as real mods.
Reply With Quote
  #54  
Old 30 Sep 2014, 12:39
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Who knows what's going on with the post times. I noticed it happen yesterday as well.

As for the str_replace it is difficult because of what we are adding, it needs to be done while the template is being compiled, but I got it working, so I should have this ready for you later today.

Good thing is now I can redo my template modifications, that did something similar and turn them into real mods.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #55  
Old 30 Sep 2014, 13:02
Black Snow Black Snow is offline
 
Join Date: Jul 2012
After an addon is made and you are testing it, how can you test what the output is? Can you use print or echo to see the output of your code?
Reply With Quote
  #56  
Old 30 Sep 2014, 22:28
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Ok here it is.

I added the stylevar for the background also for you.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.

Last edited by ozzy47; 01 Oct 2014 at 10:31.
Reply With Quote
  #57  
Old 30 Sep 2014, 23:15
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
There is one change you need to make th the CSS template. Remove what is in there and replace it with this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I forgot I had some of the values hard coded for testing.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #58  
Old 01 Oct 2014, 07:56
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Still nothing happening for me when I install it and make the changes. I think I also need to make the settings for the background colour as there is only the setting to enable the mod.

You can see on the attached image that the post is moderated and the div class is still postbody.
Attached Images
File Type: jpg poost_background.jpg (60.1 KB, 8 views)
Reply With Quote
  #59  
Old 01 Oct 2014, 10:00
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Wierd, it should be showing as moderated. Care to send me a admin account so I can see what is going on?
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #60  
Old 01 Oct 2014, 10:32
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
I just tested this on a vanilla vB4 site and it is working, so I would need to debug what is going on with your site that is stopping the mod from working.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:37.

Layout Options | Width: Wide Color: