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.

Topics - CerealGuy
Plugin Support / Wedge way to add Profile Field
« on October 3rd, 2014, 03:23 PM »
In the moment im working on a plugin which should show how many likes the user recieved and gave on his Profile.
In the invitemod plugin i did it with add_js, but thats in my opinion not a really good way. Wouldnt it a good thing to have some 'custom_field' hook?
Or is there another better way?
Bug reports / Shorten Subjects in Stats
« on September 26th, 2014, 07:43 PM »
Shortening subjects in Stats would be good, otherwise it looks crappy with long names.
Something around 35 Letters should be good.
Archived fixes / Input #userspec
« on September 26th, 2014, 07:24 PM »
Needs a "width: 100%", otherwise it's too big.
Tested on Firefox & Chrome (latest Ubuntu version).
Bug reports / Collapse Forum
« on September 26th, 2014, 03:27 PM »
First hiding a forum would be better if it's done by ajax and just fire a GET request to the collapse action.
And the collapse action does not show thoughts and recent posts. Also Home.template.php doesnt get runned.
Features / [Hook] Custom Fields
« on August 18th, 2014, 05:34 PM »
I think a hook for adding custom fields would be a good thing. Adding the field with JS is a way but not a nice one.
I would suggest something like that:

call_hook('load_custom_fields', array($memID, $area, &$context['custom_fields'])); (Profile.php)

EDIT: No more need for, we have mods.xml
Archived fixes / Search ignores specific boards
« on August 3rd, 2014, 10:06 PM »
It looks like the search ignores the "Search in specific boards" option. It always searchs in all boards.
Plugin Support / Adding collumn with mediumtext as type
« on June 22nd, 2014, 10:29 PM »
I'm trying to create a collumn with mediumtext as type via plugin-info.xml.
First the plugin-info.xml:
Code: [Select]
<table if-exists="update" name="{db_prefix}text">
<column name="id" autoincrement="yes" type="mediumint" unsigned="yes" />
<column name="test" type="mediumtext" size="255" />
<index type="primary">



Code: [Select]
BLOB/TEXT column 'test' used in key specification without a key length
Datei: /home/oqcchckd/public_html/wedge/core/app/Class-DBHelper.php
Zeile: 339

CREATE TABLE wedge_text
`id` mediumint(8) unsigned NOT NULL auto_increment,
`test` mediumtext NOT NULL,

First thought its a problem with the mysql server but tried it on a different host, same error. How do i define the key length and shouldn't be there default values and/or the size parameter used?

Thanks in advance

EDIT: Problem found :D For some reasons its not good to make it primary, related to mysql ^^ Perhaps it helps people with the same problem :D
Bug reports / Advanced Options for Permissions not working
« on June 21st, 2014, 01:24 AM »
The advanced options in managing Permissions doesn't work or for me it doesnt change anything (perhaps i dont understand how its working but in the moment it looks like a bug :lol:).
Thats bad because i cant add Permissions to a group :wow:

Im using the latest rev.
Archived fixes / 'ViewRemote' not found or invalid function name
« on June 18th, 2014, 11:00 AM »
Code: [Select]
Kann den "main" Template block nicht finden.

Code: [Select]
2: call_user_func() expects parameter 1 to be a valid callback, function 'ViewRemote' not found or invalid function name
Datei: /var/www/wedge/index.php

Only appears sometimes, not sure when exactly :niark: Perhaps someone else has an idea?!
Archived fixes / Some bugs with allow_guestAccess
« on May 30th, 2014, 11:52 PM »
Found some bugs with allow_guestAccess set to false.
They all appear when the user is a guest.

Guests can not switch the skin, because 'skin' is not an allowed action (index.php).
Code: [Select]
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification'))))

Code: [Select]
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification', 'skin'))))

#2 Guest sees a searchbox, but he needs to be registered to search, therefore an ugly frame appears. I think the best is to just disable the searchbox for guests when allow_guestAccess is false.

#3 Same for the quick access sidebar element.
Archived fixes / Install error get_preferred_language()
« on May 30th, 2014, 06:16 PM »
Its connected to dfa1bdffa35693773fb1199fc108d1046336375c.
Problem is that get_preferred_language got moved to we::.
Installation fails because of this.

In Class-System.php change
Code: [Select]
private static function get_preferred_language($language)


Code: [Select]
public static function get_preferred_language($language)

and in install.php

Code: [Select]
$lang = get_preferred_language();


Code: [Select]
$lang = we::get_preferred_language();
Archived fixes / Logo Bug
« on May 4th, 2014, 06:23 PM »
I changed the logo and the result was that home_index was defined as the logo link. And the Home icon broke.

EDIT: Should be fixxed, doesnt appear on the latest commit.
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).

Code: [Select]
This one works as it should, we have an alert with the message "<ul>"

Code: [Select]
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;div id=&quot;junk&quot;&gt;
&lt;strong&gt;Templates&lt;/strong&gt; (5):
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...)

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]

EDIT: omg... looks like there are some troubles displaying this :D
Plugins / [Plugin] InviteMod
« on April 25th, 2014, 04:55 PM »

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

    Permissions for infinite slots
    User recieves on x posts an invitekey


    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


and add AFTER

   call_hook('register_form_pre', array());

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

Code: [Select]

    Activate plugin in acp
    (optional) Configurate the plugin


    Better Permissions
    more admin options


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).