71
ajaxbr
Re: Check out this website
  • 2004/9/14 1:40

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


I like it. "SPECIAL HURRICANE COVERAGE" items are a bit hard to read due to lack of contrast (light blue on white) and the theme could use a bit of tweaking, specially at the bottom (e.g. removing/editing those hardcoded links). More data will come with time and things will get even better.

I suggest displaying Headlines in the Top Page, but it can be done after Ivan goes away

Good luck and congrats for your work



72
ajaxbr
Re: is there a way to ban saving pictures from xcgal
  • 2004/9/9 22:11

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Check this thread. My answer is NO also, but there are lots of things you can do to make it a bit harder



73
ajaxbr
Re: Looking for a script to create lots of users
  • 2004/9/6 0:56

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:

Bender wrote:
Hi ajaxbr,

it works great. I modified the script to take care of putting the new users into the usergroups.

Thanks for your help.

(Between what is the password those users have?)
Great, I wish you luck with your stress tests. I'll try to find that password and post it here

Edit: JoeUser's password is "huhuhu567jajaja"



74
ajaxbr
Re: Looking for a script to create lots of users
  • 2004/9/5 4:30

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


A crude script to create more users would be something like
<?php
$uidmin 
1313;
$uidmax 1316;

for (
$uid $uidmin$uid $uidmax$uid++)
{echo 
"INSERT INTO `xoops_users` VALUES (".$uid.", '', 'JoeUser".$uid."', 'anymail".$uid."@nowhere.com', '', 'blank.gif', 1094155383, '', '', '', 0, '6cc7a5d0', '', '', '', '3516064db5fa1c4c13cd0eee42cce334', 2, 0, 0, 1, '', '0.0', 1094155547, 'nest', 0, 1, 0, '', '', '', 1); ";
}
?>
So that you can set what UIDs are to be generated... if you want to have anything else changing, either incrementally or randomly, it'd be a matter of identifying the right field above and making it another variable with whatever behaviour is necessary. This crude example generated SQL that was as good as my previous method, but I have no idea about how long it'd take to generate lots of entries.



75
ajaxbr
Re: Looking for a script to create lots of users
  • 2004/9/5 3:59

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Fidling with OpenOffice SpreadsheetThingy for about 15 minutes, I was able to build a large SQL file for inserting lots of users.
You can grab it here and you'll need to trim it so that it doesn't overlap with existing UIDs (won't add anything) or it leaves a gap in UIDs (didn't try it ), and of course to the number of members you want .

It has 1312 users and I can make it as big as you want (actually, with as much repetitive info too) without much effort. However, it seems that added users won't be assigned to any existing group so you might need another batch of INSERTs to solve that. Test it and report back, we may end up with a "add lots and lots of users to stress test your server" pack

Edit: oops, they all have 2 posts (sneaky bastards!)



76
ajaxbr
Re: Looking for a script to create lots of users
  • 2004/9/5 2:25

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Hey Bender
Would you need valid email addressess, could they all have the same password and do they need to have any other info besides a username, uid and whatever else in mandatory?



77
ajaxbr
Re: I'll be damned
  • 2004/8/3 20:50

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


You can try that, but usually "localhost" works (because usually the SQL server is at the same IP of the HTTP server, but using another port). So I'd try localhost first and if it doesn't work, the SQL Server name



78
ajaxbr
Re: XOOPS in Frames
  • 2004/7/30 23:37

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:

jmass wrote:
There is no use that frames serve that can not be done differently. There are far too many disadvantages of frames and zero advantages.
Thanks a lot for your reply

My interest in frames comes from not being able to find another way to avoid data transfer for, say, a navigation menu or a static banner every time the actual contents change. I'll be toying with this frames idea in a few days, if you can suggest a better way to achieve that, it'll save me from some worthless effort



79
ajaxbr
Re: Stop image uploading into forums.
  • 2004/7/27 3:04

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Another less destructive way of deleting images is hacking templates or themes. You can try opening newBB templates and replacing
<{foreach item=topic_post from=$topic_posts}>
    <{include 
file="db:newbb_thread.html" topic_post=$topic_post}>
  <{/foreach}>
with

<{foreach item=topic_post from=$topic_posts}>
    <{include 
file="db:newbb_thread.html" topic_post=$topic_post|regex_replace:"/<img.*>/":""|regex_replace:"//>/":">"|strip}>}>
  <{/foreach}>



80
ajaxbr
Re: Stop image uploading into forums.
  • 2004/7/27 2:55

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


You can try opening /class/module.textsanitizer.php and commenting this out (e.g., by putting /* and */ around this block or // at the beginning of each line).
$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU";
        
$patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU";
        $patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"
]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";
        
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";
        if (
$allowimage != 1) {
            
$replacements[] = '<a href="\3" target="_blank">\3</a>';
            
$replacements[] = '<a href="\1" target="_blank">\1</a>';
            
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\4" target="_blank">\4</a>';
            
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\2" target="_blank">\3</a>';
        } else {
            
$replacements[] = '<img src="\3" align="\2" alt="" />';
            
$replacements[] = '<img src="\1" alt="" />';
            
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
            
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\2" alt="\3" />';
        }

This will break ALL instances of [img], so be careful.




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 26 »



Login

Who's Online

226 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 226


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits