Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - CerealGuy
286
Support / Re: breadcrumb edit ?
« on May 3rd, 2014, 12:34 AM »
Hmm isnt really a plugin thing, should perhaps be a core feature or something skin related. Im not sure about it buts its possible to do ^^
287
Support / Re: breadcrumb edit ?
« on May 2nd, 2014, 01:55 PM »
I dont really understand why you want to do that :D But would be possible with a small plugin.
288
Plugin Support / Re: Problems with loading when modifying post
« on April 29th, 2014, 08:11 PM »
Is there any use for if its loaded when you are not on Post Display (full editor etc.?!). I think not but perhaps i miss something... But if theres not, why dont move from "load_theme" hook to "display_message_list"? That one is already used and we would have one hook less.
Just sayin not finished with "understanding" the plugin.
289
Plugin Support / Re: add_js + </ul>
« on April 29th, 2014, 05:12 PM »
Tried curl + cookie, its nothing with the browser.
290
Plugin Support / Re: Problems with loading when modifying post
« on April 29th, 2014, 12:35 AM »
I just had a short look on it, too tired for now but why is he using a class? Will have a look on it tomorrow (damn its already "today" oO)...
291
Plugin Support / Re: Problems with loading when modifying post
« on April 29th, 2014, 12:17 AM »
Same error just occured on wedge. Message was send correctly but i stucked on the screen with the loading animation.
That post: http://wedge.org/pub/plugins/support/8600/add_js-ul/msg295634/#msg295634
Quote
reflow: 9.63ms
POST http://wedge.org/pub/bugs/do/post2/ [HTTP/1.1 302 Moved Temporarily 5181ms]
reflow: 0.12ms function o.fn[d]/<, jquery.min.js line 4
reflow: 0.5ms function o.fn[d]/<, jquery.min.js line 4
reflow: 1.08ms function h, jquery.min.js line 3
reflow: 0.96ms function xb, jquery.min.js line 3
reflow: 1ms function h, jquery.min.js line 3
reflow: 0.87ms function xb, jquery.min.js line 3
Unknown property 'box-sizing'.  Declaration dropped. post
reflow: 0.1ms
reflow: 0.4ms
GET http://wedge.org/pub/bugs/8588/problems-with-loading-when-modifying-post/msg295637/#msg295637 [HTTP/1.1 200 OK 4141ms]
EDIT: Check locally, bug only appears with Ajax QR enabled.
292
Plugin Support / Re: add_js + </ul>
« on April 28th, 2014, 11:55 PM »
Thanks for your suggestion but its really the same problem.
Code: [Select]
add_js('$(function() { $(\'.now\').before(\'<ul><li><a href="index.php?action=invite">' . $ps_string . '</a></li></ul>\'); });');
Throws that js error
Code: [Select]
SyntaxError: unterminated string literal index.php:555
ReferenceError: eves is not defined script-a-english-641436.js:19

while
Code: [Select]
add_js('$(function() { $(\'.now\').before(\'<ul><li><a href="index.php?action=invite">' . $ps_string . '</a></li><\/ul>\'); });');
works. But that <\/ul> still confuses me. Why is that one working and without the "escaped backslah" not? And why that "fault" only occurs with the ul tag? :D It's really weird...

EDIT: Added a small test plugin. Try to enable it and look if the message appears how it should.
293
Archived fixes / Re: More language bugs
« on April 28th, 2014, 04:15 PM »
Perhaps there was something wrong with my setting... tested it in a virtualbox again and works how it should. I set it as solved, perhaps it appears again i dont know...

EDIT: Switched to the latest commit and its again broken :whistle: I have too much wedge backups ::)
In the first screenshot you see my options (purged cache and saved settings) and in the second the view from a guest with cleaned cache.

When i have selectable languages activated and English is available (german default), the language switches automatically to german :D But if only German is available then english is set as language :unsure:
294
Plugin Support / Re: add_js + </ul>
« on April 28th, 2014, 12:53 AM »
Code: [Select]
...
add_js('$( document ).ready(function() {$( ".now" ).before( "<ul><li><a href=\"index.php?action=invite\">'.$ps_string.'</a></li></ul>" );});');
Here the backslash in the end ul tag is unescaped like all other end tags. This "bug" or whatever just appears when i try to have an </ul> tag in javascript.
JS Console tells me:
SyntaxError: unterminated string literal

and the script output from wedge:
Code: [Select]


<script>
we_notifs = 0;
eves = {
1: ["change", function (e) { this.form.submit(); }],
2: ["click", function (e) { return reqWin(this); }]
};
we_pms = 0;
we_script = "http://localhost:8888/wedge_old/index.php";
we_assets = "http://localhost:8888/wedge_old/assets";
we_sessid = "5cae2da9ffc31150b2fc24628844183b";
we_sessvar = "f7abe7450";
we_groups = ["1|-1|Administrator", "2|-1|Global Moderator", "3|-1|Moderator", "9|-1|Partner", "4|0|Newbie", "5|50|Jr. Member", "6|100|Full Member", "7|250|Sr. Member", "8|500|Hero Member"];
we_lists = [];
$(".thome").mime({
16: ["lk", "cx/16", "re/0", "mo/0", "de"],
        [...]
8: ["lk", "cx/8", "re/0", "mo/0", "de"],
7: ["cx/6", "re/6", "mo/6", "de", "bl"]
}, {
lk: ["Like", "Like this post", "", "like_button", "return oThought.like(%1%)"],
                [...]
bl: ["Posterity?", "Show this thought under my name in topics, for posterity.", "", "like_button", "return oThought.personal(%1%)"]
});$( document ).ready(function() {$( ".now" ).before( "<ul><li><a href=\"index.php?action=invite\">'.$ps_string.'</a></li></ul>
       

I'm totally unsure about this, probably its not a bug just my stupidness or i understand something not ^^.
I have it in one line and tested it with other shorter codes. Even a var test = "</ul>" fails with the same kind of error.

I totally have to check if its like that in the raw response...

But otherwise its not really important, i found a workaround. Just thought that someone maybeknows the problem :D
295
Plugin Support / add_js + </ul>
« on April 27th, 2014, 08:50 PM »
I'm having a comic problem while trying to add js code with an "</ul>" in it (its connected to InviteMod but broke it a bit down to make it easier to understand).

Example1:
Code: [Select]
add_js(&quot;alert(\&quot;&lt;ul&gt;\&quot;);&quot;);
This one works as it should, we have an alert with the message "<ul>"


Example2:
Code: [Select]
add_js(&quot;alert(\&quot;&lt;/ul&gt;\&quot;);&quot;);
This one works not, even if its nearly the same as in Example1.
I dont really know whats going on there but it looks like something deletes stuff after
the </ul> tag.

Code: (html output) [Select]
&lt;script&gt;
...
});alert(&quot;&lt;/ul&gt;
&lt;div id=&quot;junk&quot;&gt;
&lt;strong&gt;Templates&lt;/strong&gt; (5):
...
&lt;/script&gt;
Some more things that i discovered:
- It works when the user is not logged in
- Tested it on multiple hosts, on one it works but on the others not
- Its the same when i add it manually to $context['footer_js'] (perhaps some parse functions doing stuff with it...)

Workarounds:
This one is not really nice but works.
Code: [Select]
print &quot;&lt;script&gt;alert(\&quot;&lt;/ul&gt;\&quot;);&lt;/script&gt;&quot;;

And this one is what made me a bit confused. A simple escape of the / did it. I have no idea why, perhaps someone can explain it to me :D
Code: [Select]
add_js(&quot;alert(\&quot;&lt;\/ul&gt;\&quot;);&quot;);

EDIT: omg... looks like there are some troubles displaying this :D
296
Support / Re: Change Blurb on forum home page?
« on April 26th, 2014, 08:59 PM »
I dont think so but actually its quite easy to change it.
Open /core/languages/Home.english.php (german, or whatever languages you have installed) and edit the variables there.
The only problem with this is that after each upgrade you have to change it again (Or you do it as described in the default message).
297
Archived fixes / Re: first post in thread is out of line
« on April 26th, 2014, 01:49 PM »
298
Archived fixes / Re: first post in thread is out of line
« on April 25th, 2014, 06:20 PM »
Could be connected to:
Quote from Nao
Nao » Been doing some layout/styling tests for mobile. Have to go for now; the current CSS might be breaking your desktop homepage a bit. Only report bugs if found outside of the homepage, thanks! 1
299
Plugins / [Plugin] InviteMod
« on April 25th, 2014, 04:55 PM »
InviteMod

With this plugin, new users need an Invitekey to register. Those Invitekeys can be generated from already registered Members.
Features:

    Permissions for infinite slots
    User recieves on x posts an invitekey
    Notificationsupport

Installation

    Drop the 'invitemod' directory in your plugins folder.

    Now you have to add the custom hooks. You need to do this after each upgrade/update!

    In /core/app/Register.php
    Search

   loadTemplate('Register');

and add AFTER

   call_hook('register_form_pre', array());

In /core/app/ManagePlugins.php
Search: 'register', and add AFTER:

   
Code: [Select]
     'register_form_pre',

    Activate plugin in acp
    (optional) Configurate the plugin

ToDo

    Better Permissions
    more admin options

FAQ

Ok cool, but dude, what does this Plugin?!

Imagine, you want a more private forum and only People which know someone on the Forum should be able to register.
Or you want that only people you know can register, but they should create their account on there own. Thats possible with
this plugin.

Interesting but tell me some more

Well,  Member can have a dynamic amount of Inviteslots. That amount can increase by writing more than X posts.
Now they have probably 3 Inviteslot and they genereate one Invitekey. After that they would only have 2 Inviteslots anymore.
But they can delete the invitekey and get back the slot. However, if a person registeres with that key it will disappear and the slot would be "lost".

Is it possible to get back a "lost" Inviteslots?

Yes it is, currently there is an option with which you can set that the inviter gets back his inviteslot if the invited user writes X Posts (default 1000).

https://github.com/C3realGuy/we_InviteMod
300
Archived fixes / More language bugs
« on April 22nd, 2014, 11:21 PM »
Set German as Default and only available language but Language is still english. Only if i allow user-selectable language support i can switch successful to german.